package com.zhaiweijia.util;

public enum FileSizeUnit {
	
	B(1 ,"B"),K(1024,"KB"),M(1024*1024,"MB"),
	G(1024*1024*1024,"GB"),T(1024*1024*1024*1024,"TB"),
	P(1024*1024*1024*1024*1024,"PB");
	
	private Integer code;
	private String name;
	
	public Integer getCode() {
		return code;
	}
	public void setCode(Integer code) {
		this.code = code;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	private FileSizeUnit(Integer code, String name) {
		this.code = code;
		this.name = name;
	}
	
	
	
}
